package com.esdc.librarysystem.manager;

import com.esdc.librarysystem.exception.ExistException;
import com.esdc.librarysystem.exception.NotExistException;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author shou1dwe
 */
@Remote
public interface CollectionManagerRemote {
 
    public void addTitle(String name,String ISBN, String author, String publisher) throws ExistException;
    public long addBook(String ISBN) throws NotExistException;
    public void deleteBook(long id) throws NotExistException;
    public List findBooksByTitle(String name);
    public List findBooksByAuthor(String name);
}
